/*
*
* UmsUserDetailMapper.java
* Copyright(C) 2017-2020 DHCC
* @date 2020-11-16
*/
package com.cluster.platform.dao;

import com.cluster.platform.dto.UmsUserDetailDto;
import com.cluster.platform.model.UmsUserDetail;
import com.cluster.platform.model.UmsUserDetailExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UmsUserDetailDao {

    /**
     * 根据userid查询用户详情信息
     * @param userId
     * @return
     */
    UmsUserDetailDto searchByUserId(String userId);

    /**
     * 根据用户userid更新用户详情信息
     */
    int updateByUserId(UmsUserDetail umsUserDetail);

    /**
     * 根据userid更新用户状态
     */
    int logicToDelete(String userId);

    /**
     * 根据username查询用户信息
     */
    UmsUserDetailDto searchByUsername(String username);

}